﻿@model List<Downloader.Domain.Category>
@{
    if(Model.Count>0){
        <tr>
            <td></td>
            <td colspan="5">
                <tbody>
                    <tr style="background-color:azure;">
                       <td style="background-color:floralwhite;"></td>
                        <td>key
                        </td>
                        <th>名称
                        </th>
                        <th>介绍
                        </th>
                        <th>排序
                        </th>
                        <th>操作
                        </th>
                    </tr>
                    @{ 
                        var i = 0;
                        foreach (var category in Model)
                        {
       
                            <tr style="text-align: center;">
                                <td></td>
                                <td>@category.Id
                                </td>
                                <td>@category.Name
                                </td>
                                <td>@category.Introduction
                                </td>
                                <td>@category.Sequence
                                </td>
                                <td>
                                    @Html.ActionLink("删除", "Dele", "Category", new { id = category.Id }, new { @class = "dele" })
                                </td>
                            </tr> 
                            i++;
                        }
                    }

                </tbody>
            </td>
        </tr>
    }
}